﻿using DapperExtensions;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ET_DbCommon.Model
{
    [Table("exam_testquestion_task")]
    public partial class Exam_TestQuestion_TaskModel : Entity
    {
        /// <summary>
        /// 试卷表索引
        /// </summary>
        public int ExamtestQuestionId { get; set; }

        /// <summary>
        /// 任务描述
        /// </summary>
        public string Describes { get; set; }

        /// <summary>
        /// 互斥任务索引
        /// </summary>
        public int MutexTask { get; set; }

        /// <summary>
        /// 事后任务
        /// </summary>
        public int AfterTask { get; set; }

        /// <summary>
        /// 事后任务触发间隔;事后任务触发间隔单位：秒
        /// </summary>
        public int AfterInterval { get; set; }

        /// <summary>
        /// 任务顺序
        /// </summary>
        public int Order { get; set; }

        /// <summary>
        /// 界面顺序
        /// </summary>
        public int UiOrder { get; set; }

        /// <summary>
        /// 任务类型
        /// </summary>
        public string TaskType { get; set; }

        /// <summary>
        /// 试卷表索引
        /// </summary>
        public int TestQuestionId { get; set; }

        /// <summary>
        /// 执行状态;未执行；执行中；已执行
        /// </summary>
        public string ExcuteState { get; set; }

        /// <summary>
        /// 原TaskId
        /// </summary>
        public int TaskId { get; set; }
        /// <summary>
        /// 是否为主线任务
        /// </summary>
        public bool IsMain { get; set; }
        /// <summary>
        /// 考核考试步骤表
        /// </summary>
        [Computed]
        public List<Exam_TestQuestion_Task_StepModel> Exam_Steps { get; set; }
    }
}
